package 设计模式.策略模式;

public class Test {

   /* public static void main(String[] args) {
        PromotionActivity a618 = new PromotionActivity(new LijianPromotionStrategy());
        PromotionActivity a1111 = new PromotionActivity(new ManJianPromotionStrategy());
        a618.execute();
        a1111.execute();
    }*/

    public static void main(String[] args) {
        String promotionKey = "lijianvvv";
        PromotionActivity promotionActivity = new PromotionActivity(PromotionStategyFactory.getPromotionStategy(promotionKey));
        promotionActivity.execute();

    }
}
